<?php

namespace App\Service;

class HelperClass
{
    public static function formatWeekDay($day)
    {
        switch ($day) {
            case 0:
                return '星期日';
            case 1:
                return '星期一';
            case 2:
                return '星期二';
            case 3:
                return '星期三';
            case 4:
                return '星期四';
            case 5:
                return '星期五';
            case 6:
                return '星期六';
        }
    }

    /**
     * 管理员信息.
     */
    public static function getLoginAdmin()
    {
        return AdminService::getAdminInfoParse(get_header_token());
    }
}
